﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework;
using System.IO;

namespace UtopianGame.graphics.menu
{
    class Region1 : BaseMenu
    {
        //  private String message;
        Rectangle Policy_textbox;
        Rectangle text;
        Texture2D myColour;
        Texture2D myColour2;
      
     

        public Region1(ContentManager cm, String newMessage)
        {
            init(cm, newMessage);

        }
        protected void init(ContentManager cm, String newMessage)
        {
            base.init(cm);
            spriteName = "texture2";
            sprite = cm.Load<Texture2D>(spriteName);
            boundingBox.Width = 500;
            boundingBox.Height = 500;
            
            int centerAlignmentNumber = 0;
            //Close button in the center of screen
            centerAlignmentNumber = boundingBox.X + (boundingBox.Width / 2);
            centerAlignmentNumber -= ((int)(GlobalDataHolder.baseFont.MeasureString("Close").X) / 2);

            addToSubObjectList(new CloseMenuButton(contentManager), centerAlignmentNumber, 500, 500);
        }

        public override void draw(SpriteBatch sb)
        {
            base.draw(sb);

            //centerAlignmentNumber is used to dynamically center text on top of the menu
            int centerAlignmentNumber = 0;
            centerAlignmentNumber = boundingBox.X + (boundingBox.Width / 2);
          

            

         
          
        }


    }
}
